import request from '@/utils/request'

/**
 * 创建字段
 * @param query
 */
export const createField = (data: any) => {
  return request({
    url: '/field/create',
    method: 'post',
    data,
  })
}

export const queryFieldList = (params: any) => {
  return request({
    url: '/field/list',
    method: 'get',
    params,
  })
}

export const delField = (data: any) => {
  return request({
    url: '/field/delete',
    method: 'post',
    data,
  })
}

export const queryFieldTypeList = () => {
  return request({
    url: '/field/listAllType',
    method: 'get',
  })
}
